package com.xh.bussiness.permission.dao;

import com.xh.bussiness.permission.model.UserRole;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author daiwei
 * @since 2018-09-27
 */
public interface UserRoleMapper extends BaseMapper<UserRole> {

    List<Map<String, Object>> queryMenuFunctionsByUserId(String userId);

    boolean deleteByUserId(@Param("userId") String userId);

}
